import { TypedUseSelectorHook, useDispatch, useSelector } from 'react-redux';

import type { RootState, AppDispatch } from '@/shared/redux/store';

// Uses throughout your app instead of plain `useDispatch` and `useSelector`
export default class Hook {
  static readonly useAppDispatch: () => AppDispatch = useDispatch;
  static readonly useAppSelector: TypedUseSelectorHook<RootState> = useSelector;
}
